<?php

namespace app\common\model;

use think\Model;
use app\common\model\user\UserModel;

class SpjFeedback extends Model
{
    protected $table = 'spj_feedback';
    protected $autoWriteTimestamp = false;

    protected $schema = [
        'id' => 'int',
        'user_id' => 'int',
        'scene' => 'tinyint',
        'content' => 'text',
        'images' => 'text',
        'contact' => 'varchar',
        'ip' => 'varchar',
        'ua' => 'varchar',
        'status' => 'tinyint',
        'create_time' => 'bigint',
        'update_time' => 'bigint',
        'process_remark' => 'text',
    ];

    public function user()
    {
        return $this->belongsTo(UserModel::class, 'user_id', 'id');
    }
}